﻿using System;
using System.Windows.Forms;
using Autodesk.Revit.DB.Mechanical;
using YArchitech.HCLoad.Utils;

namespace YArchitech.HCLoad.Export
{
	internal class SpaceItem : ListViewItem
	{
		public SpaceItem(Space space) : base(space.Name)
		{
			this.m_space = space;
			base.Text = space.Name;
			double num = HcUnit.AreaConverFromAPI(space.Document, space.Area);
			base.SubItems.Add(num.ToString("0.000"));
		}

		public Space Space
		{
			get
			{
				return this.m_space;
			}
		}

		private Space m_space;
	}
}
